<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../js/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="../../js/easyui/themes/icon.css">
<script type="text/javascript" src="../../js/easyui/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../../js/easyui/js/jquery.easyui.min.js"></script>
<style>
.easyui-linkbutton {margin-bottom:10px;}
.txt {margin-bottom:10px;}
#left {width:363px; float:left;      
       }
#searchFrm{margin-right:0;float:right;}
</style>
<script type="text/javascript" src="../../js/appoint.js"></script>
<script type="text/javascript" src="../../js/selectDept.js"></script>
<title>用户选择</title>
</head>
<body >
<input id="deptId" type="hidden" ></input>
<input id="deptName" type="hidden" ></input>
<table>
<tr>

<td>
 <div id="searchDeptFrm">
 <label>部门编号</label>
 <input class="txt" id="s_deptNo" maxlength="20"></input><br/>
 <label>部门名称</label>
 <input class="txt" id="s_deptName" maxlength="20"></input><br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <a href="JavaScript:clearDept();" class="easyui-linkbutton" plain="false" iconCls="icon-undo">Cancel</a>
 <a href="JavaScript:searchDept();" class="easyui-linkbutton"  plain="false" iconCls="icon-search">Search</a>
 </div>
 </td>
 <td></td>
 <td><div id="searchFrm">
 <label>用户编号</label>
 <input class="txt" id="s_userNo" maxlength="20"></input><br/>
 <label>用户&nbsp;&nbsp;名</label>
 <input class="txt" id="s_userName" maxlength="20"></input><br/>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <a href="JavaScript:clearUser();" class="easyui-linkbutton" plain="false" iconCls="icon-undo">Cancel</a>
 <a href="JavaScript:searchUser();" class="easyui-linkbutton"  plain="false" iconCls="icon-search">Search</a>
 </div></td></tr>
<tr><td>
  <!-- 表格 -->
  <table id="allDeptTable"
		title="选择部门"  
		border="1"
		cellspacing="0"
		cellpadding="0"
		iconCls="icon-edit" 
		idField="deptId" 
		pagination="true"
		remoteSort="false" 
		singleSelect="false" 
		showFooter="false"
		striped="true" 
		url="../../dept/deptpage.json">

	<thead>
	    
		<tr align="center">
			<th field="ck" width="15" checkbox="true" width="20"></th>
			<th field="deptName" width="160">部门 名称</th>	
			<th field="manager" width="100" formatter='formatUserName'>经理</th>		
		</tr>
		
	</thead>
</table>
 

</td><td>
</td>

<td>
<table 	id="deptUserTable"
		title="当前选择部门的用户"  
		border="1"
		cellspacing="0"
		cellpadding="0"
		iconCls="icon-edit" 
		idField="userId" 
		pagination="true"
		remoteSort="false" 
		singleSelect="false" 
		showFooter="false"
		striped="true" 
		url="">

	<thead>
	    
		<tr align="center">
			<th field="ck" width="15" checkbox="true" width="20"></th>
			<th field="userNo" width="160">用户编号</th>	
			<th field="userName" width="160">用 户 名</th>		
		</tr>
		
	</thead>
</table>

</td></tr>

</table>
</body>
</html>